Render to texture code

Extend the render to texture code with a post process effect of your own design. Groups of two can do a simple effect like the swirl example; groups of three should do a more complex effect like an edge detect filter.

Here is an example edge detect kernel. The sampled fragment is at the center. You'll need to lookup nearby fragments and weight them according to the kernel. $$ \begin{bmatrix} 0 & -1 & 0 \\ -1 & 4 & -1 \\ 0 & -1 & 0 \end{bmatrix} $$

Rubric


Design and implement a post process effect with render to texture0: No effect5: Simple modification of example effect10: Interesting effect appropriate to group size